<%--
  Created by IntelliJ IDEA.
  User: 86139
  Date: 2021/2/20
  Time: 14:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %>
<%@ page import="Person_JavaBean.UserDao" %>
<%@ page import="Person_JavaBean.User" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查询显示</title>
</head>
<body>
    <%
        String name = request.getParameter("name");
        UserDao dao = new UserDao();
        User user = dao.findInfoByname(name);
    %>
    <table border="1 solid red">
        <tr>
            <th>id</th>
            <th>name</th>
            <th>defence</th>
            <th>force</th>
            <th>inteligence</th>
            <th>politics</th>
            <th>charm</th>
            <th>biolography</th>
        </tr>
        <tr>
            <td><%=user.getId() %></td>
            <td><%=name %></td>
            <td><%=user.getDefence() %></td>
            <td><%=user.getForc() %></td>
            <td><%=user.getInteligence() %></td>
            <td><%=user.getPolitics() %></td>
            <td><%=user.getCharm() %></td>
            <td><%=user.getBiolography() %></td>
        </tr>
    </table>
</body>
</html>
